const Sequelize = require('sequelize');

const sequelize = new Sequelize('stk_notes', 'root', '11111111', {
    host: 'localhost',
    dialect: 'mysql',
  
    dialectOptions: {
        // 字符集
        charset: "utf8mb4",
        supportBigNumbers: true,
        bigNumberStrings: true
    },
    pool: {
        max: 5,
        min: 0,
        acquire: 30000,
        idle: 10000
    },
    timezone: '+08:00' //东八时区
});


module.exports = sequelize